package com.sneakxy.cloudbase.platform.service;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import com.sneakxy.cloudbase.platform.bean.dto.HomeDTO;
import com.sneakxy.cloudbase.platform.utils.web.Response;

/**
 * 首页模板信息消费接口
 * @author 潜行的虚影
 * @see
 */
@FeignClient(name="security-producer", path = "/security/api/home")
public interface HomeClient {

	@PostMapping("one")
	public Response<HomeDTO> one(
			@RequestParam(name="type")
			String type,
			@RequestParam(name="login")
			boolean login);
	
	@PostMapping("query")
	public Response<List<HomeDTO>> query(@RequestParam(name="type") String type);
	
	@PostMapping("save")
	public Response<HomeDTO> save(@RequestBody HomeDTO home);
	
}
